<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Home</title>
</head>
<body>
    <h3>Options</h3>
    <ul>
        <li>
            <span id="uploadLabel">Upload a spreadsheet: </span>
            <form:form name="uploadSpreadsheetToWeb" action="uploadSpreadsheet.html"
                       method="post" enctype="multipart/form-data"
                       commandName="uploadModel">
                <label for="templateName">Select Template: </label>
                <form:select name="templateName" items="${availableTemplates}" path="selectedTemplate" />
                <form:input id="uploadFile" name="uploadFile" type="file" path="uploadFile"/>
                <form:button id="uploadButton" type="submit" value="Upload">Upload</form:button>
            </form:form>
        </li>
    </ul>
</body>
</html>